#-------------------------------------------------
#
# Project created by QtCreator 2012-09-08T18:07:45
#
#-------------------------------------------------

QT       += network

QT       -= gui

TARGET = DataBusClient
TEMPLATE = lib
VERSION = 0.0.1

DEFINES += DATABUS_LIBRARY

SOURCES += src/Common/Common.cpp \
    src/Common/Packet.cpp \
    src/Common/PacketHeader.cpp \
    src/Common/PacketParser.cpp \
    src/Common/PacketPayload.cpp \
    src/Common/PingRequestPacket.cpp \
    src/Common/PingResponsePacket.cpp \
    src/Common/RegisterClientRequestPacket.cpp \
    src/Common/RegisterClientResponsePacket.cpp \
    src/Common/GetClientListRequestPacket.cpp \
    src/Common/GetClientListResponsePacket.cpp \
    src/Common/GetClientNameRequestPacket.cpp \
    src/Common/GetClientNameResponsePacket.cpp \
    src/Common/GetClientStatusRequestPacket.cpp \
    src/Common/GetClientStatusResponsePacket.cpp \
    src/Common/GetClientPropertyListRequestPacket.cpp \
    src/Common/GetClientPropertyListResponsePacket.cpp \
    src/Common/GetClientPropertyInfoRequestPacket.cpp \
    src/Common/GetClientPropertyInfoResponsePacket.cpp \
    src/Common/GetClientPropertyValueRequestPacket.cpp \
    src/Common/GetClientPropertyValueResponsePacket.cpp \
    src/Common/SetClientPropertyValueRequestPacket.cpp \
    src/Common/SetClientPropertyValueResponsePacket.cpp \
    src/Common/Value.cpp \
    src/Common/ValueInfo.cpp \
    src/Common/Property.cpp \
    src/Common/PropertyInfo.cpp \
    src/Common/MethodInfo.cpp \
    src/Client/AbstractClient.cpp \
    src/Client/TcpClient.cpp \
    src/Common/GetClientMethodListRequestPacket.cpp \
    src/Common/GetClientMethodListResponsePacket.cpp \
    src/Common/GetClientMethodInfoRequestPacket.cpp \
    src/Common/GetClientMethodInfoResponsePacket.cpp \
    src/Common/GetClientMethodParameterInfoRequestPacket.cpp \
    src/Common/GetClientMethodParameterInfoResponsePacket.cpp \
    src/Common/GetClientMethodReturnValueInfoRequestPacket.cpp \
    src/Common/GetClientMethodReturnValueInfoResponsePacket.cpp

HEADERS += inc/DataBus/Common/Common.h \
    inc/DataBus/Common/Packet.h \
    inc/DataBus/Common/PacketHeader.h \
    inc/DataBus/Common/PacketParser.h \
    inc/DataBus/Common/PacketPayload.h \
    inc/DataBus/Common/PingRequestPacket.h \
    inc/DataBus/Common/PingResponsePacket.h \
    inc/DataBus/Common/RegisterClientRequestPacket.h \
    inc/DataBus/Common/RegisterClientResponsePacket.h \
    inc/DataBus/Common/GetClientListRequestPacket.h \
    inc/DataBus/Common/GetClientListResponsePacket.h \
    inc/DataBus/Common/GetClientNameRequestPacket.h \
    inc/DataBus/Common/GetClientNameResponsePacket.h \
    inc/DataBus/Common/GetClientStatusRequestPacket.h \
    inc/DataBus/Common/GetClientStatusResponsePacket.h \
    inc/DataBus/Common/GetClientPropertyListRequestPacket.h \
    inc/DataBus/Common/GetClientPropertyListResponsePacket.h \
    inc/DataBus/Common/GetClientPropertyInfoRequestPacket.h \
    inc/DataBus/Common/GetClientPropertyInfoResponsePacket.h \
    inc/DataBus/Common/GetClientPropertyValueRequestPacket.h \
    inc/DataBus/Common/GetClientPropertyValueResponsePacket.h \
    inc/DataBus/Common/SetClientPropertyValueRequestPacket.h \
    inc/DataBus/Common/SetClientPropertyValueResponsePacket.h \
    inc/DataBus/Common/Value.h \
    inc/DataBus/Common/ValueInfo.h \
    inc/DataBus/Common/Property.h \
    inc/DataBus/Common/PropertyInfo.h \
    inc/DataBus/Common/MethodInfo.h \
    inc/DataBus/Client/AbstractClient.h \
    inc/DataBus/Client/TcpClient.h \
    inc/DataBus/Common/GetClientMethodListRequestPacket.h \
    inc/DataBus/Common/GetClientMethodListResponsePacket.h \
    inc/DataBus/Common/GetClientMethodParameterInfoRequestPacket.h \
    inc/DataBus/Common/GetClientMethodInfoRequestPacket.h \
    inc/DataBus/Common/GetClientMethodInfoResponsePacket.h \
    inc/DataBus/Common/GetClientMethodParameterInfoResponsePacket.h \
    inc/DataBus/Common/GetClientMethodReturnValueInfoRequestPacket.h \
    inc/DataBus/Common/GetClientMethodReturnValueInfoResponsePacket.h

INCLUDEPATH += inc

# Install library
target.path = $$PWD/../lib
INSTALLS += target

# Install headers
commonHeaders.path = $$PWD/../headers/DataBus/Common
commonHeaders.files = inc/DataBus/Common/Common.h \
    inc/DataBus/Common/Packet.h \
    inc/DataBus/Common/PacketHeader.h \
    inc/DataBus/Common/PacketParser.h \
    inc/DataBus/Common/PacketPayload.h \
    inc/DataBus/Common/PingRequestPacket.h \
    inc/DataBus/Common/PingResponsePacket.h \
    inc/DataBus/Common/RegisterClientRequestPacket.h \
    inc/DataBus/Common/RegisterClientResponsePacket.h \
    inc/DataBus/Common/GetClientListRequestPacket.h \
    inc/DataBus/Common/GetClientListResponsePacket.h \
    inc/DataBus/Common/GetClientNameRequestPacket.h \
    inc/DataBus/Common/GetClientNameResponsePacket.h \
    inc/DataBus/Common/GetClientStatusRequestPacket.h \
    inc/DataBus/Common/GetClientStatusResponsePacket.h \
    inc/DataBus/Common/GetClientPropertyListRequestPacket.h \
    inc/DataBus/Common/GetClientPropertyListResponsePacket.h \
    inc/DataBus/Common/GetClientPropertyInfoRequestPacket.h \
    inc/DataBus/Common/GetClientPropertyInfoResponsePacket.h \
    inc/DataBus/Common/GetClientPropertyValueRequestPacket.h \
    inc/DataBus/Common/GetClientPropertyValueResponsePacket.h \
    inc/DataBus/Common/SetClientPropertyValueRequestPacket.h \
    inc/DataBus/Common/SetClientPropertyValueResponsePacket.h \
    inc/DataBus/Common/Value.h \
    inc/DataBus/Common/ValueInfo.h \
    inc/DataBus/Common/Property.h \
    inc/DataBus/Common/PropertyInfo.h \
    inc/DataBus/Common/MethodInfo.h

clientHeaders.path = $$PWD/../headers/DataBus/Client
clientHeaders.files = inc/DataBus/Client/AbstractClient.h \
    inc/DataBus/Client/TcpClient.h \
    inc/DataBus/Client/Client.h

INSTALLS += commonHeaders clientHeaders
